home *** CD-ROM | disk | FTP | other *** search
- Type Decl
- Previous: <Union Decl=>UnionDecl> * Next: <Expect Decl=>ExpectDecl> * Up: <Declarations=>Declaratio>
-
- #Wrap on
- {fH4}Nonterminal Symbols{f}
-
- When you use {fCode}%union{f} to specify multiple value types, you must
- declare the value type of each nonterminal symbol for which values are
- used. This is done with a {fCode}%type{f} declaration, like this:
-
- #Wrap off
- #fCode
- %type <{fStrong}type{f}> {fStrong}nonterminal{f}…
- #f
- #Wrap on
-
- Here {fStrong}nonterminal{f} is the name of a nonterminal symbol, and {fStrong}type{f}
- is the name given in the {fCode}%union{f} to the alternative that you want
- (\*Note <Union Decl=>UnionDecl>: The Collection of Value Types). You can give any number of nonterminal symbols in
- the same {fCode}%type{f} declaration, if they have the same value type. Use
- spaces to separate the symbol names.
-
-